import { getSidebarStatus } from '@/utils/cookies'

export enum DeviceType {
    Mobile,
    Desktop,
}

export interface AppState {
    device: DeviceType
    sidebar: {
        opened: boolean
        withoutAnimation: boolean
    }
}

export const state: AppState = {
    device: DeviceType.Desktop,
    sidebar: {
        opened: getSidebarStatus() !== 'closed',
        withoutAnimation: false
    }
}
